<include file="Public:header" />
<div class="page-member subpage">
    <div class="form-header">
        <div>
            <div class="line1">
                <div class="fl"><h3>短信API管理 </h3></div>
                <div class="fr hidden">
                    <form class="search-form" method="post" action="">
                        <input name="field" value="{$context.field}" type="hidden" />
                        <input name="value" value="{$context.value}" type="hidden" />
                        <input name="page" value="{$context.page}" type="hidden" />
                        <input name="order_field" value="{$context.order_field}" type="hidden" />
                        <input name="order_sort" value="{$context.order_sort}" type="hidden" />
                        <input name="offset" value="{$context.offset}" type="hidden" />
                        <input name="id" value="{$smsApi.id}" type="hidden" />
                    </form>
                </div>
            </div>
            <div class="line2">
                <!-- 编辑按钮组 -->
                <div class="fl form-btn-group btn-group-edit">
                    <in name="$x|default='03-03-14'" value="$rightsCode">
                        <button onclick="action_edit();" class="btn-save btn-highlight">编 辑</button>
                        <else />
                        <button disabled="disabled" class="btn-save btn-disable">编 辑</button>
                    </in>
                    <span>或</span>
                    <a onclick="history.back(-1);" class="linkBtn btn-abort" href="javascript:void(0);">返回</a>
                </div>
                <!-- 保存按钮组 -->
                <div class="fl form-btn-group btn-group-save hidden">
                    <button onclick="action_save();" class="btn-save btn-highlight">保 存</button>
                    <span>或</span>
                    <a class="linkBtn btn-abort" onclick="action_abort();" href="javascript:void(0);">放弃</a>
                </div>
            </div>
        </div>
    </div>
    <div class="form-box2">
        <div>
            <form id="smsApiForm" method="post" action="">
                <!--表单相关原始信息存储-->
                <input type="hidden" name="old_username" value="{$smsApi.username}" />
                <input type="hidden" name="old_passwd" value="{$smsApi.passwd}" />
                <table class="form">
                    <tr>
                        <th width="15%">用户名<span class="hint">*</span></th>
                        <td width="35%" field="username">{$smsApi.username}</td>
                        <th width="15%">密码：<span class="hint">*</span></th>
                        <td field="passwd">{$smsApi.passwd}</td>
                    </tr>
                    <tr>
                        <th>短信服务商：</th>
                        <td field="type">{$smsApi.type}</td>
                        <th>短信余额</th>
                        <td>
                            <span id="num">{$num}</span>条
                            <a target="_blank" style="margin-left:20px;"
                               href="http://www.smsbao.com/member/product/list.jhtml">点击充值</a>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>
<script src="__JS__/smsApi.js" type="text/javascript" ></script>
<include file="Public:footer" />
